package yns.springboot.guide.demo.controller.doc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import yns.springboot.guide.demo.controller.BaseController;

//@Api(value = "Swagger Test")
@RestController
public class TestSwaggerController extends BaseController {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

//	@ApiOperation(value = "API-1", notes = "Test1")
//	@GetMapping("/swagger/get/{id}")
//	public String testSwagger(  @ApiParam(value = "用户id", required = true) 
//								@PathVariable(value = "id") String id) {
//		logger.info(httpServletRequest.getRequestURI());
//		
//		return "Test Swagger " + id;
//	}
//	
//	
//	@ApiOperation(value = "API-2", notes = "Test2")
//	@PostMapping("/swagger/post")
//	public String testSwagger2() {
//		logger.info(httpServletRequest.getRequestURI());
//		return "Test Swagger 2";
//	}
}
